package com.ntes.consumer2.service;

import com.ntes.consumer2.service.impl.Service0FallbackFactory;
import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

/**
 */
@FeignClient(name = "service-demo1", fallbackFactory = Service0FallbackFactory.class)
public interface Service0Client {

    @RequestMapping(path = "getString", method = RequestMethod.POST)
    String test(@RequestParam("name") String name);
}
